home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_300
/
308_01
/
replace.inc
< prev
next >
Wrap
Text File
|
1990-06-16
|
829b
|
36 lines
/*
* replace.inc -- include file for LIST.C
*/
static int replace0(void *newitem, int newsize);
static int replace1(void *newitem, int newsize);
static int replace2(void *newitem, int newsize);
static int replace3(void *newitem, int newsize);
static int (*replace[MAXLISTS])() = { replace0, replace1, replace2, replace3 };
static int replace0(void *newitem, int newsize)
{
list = listptr[0];
return lreplitem(newitem, newsize);
}
static int replace1(void *newitem, int newsize)
{
list = listptr[1];
return lreplitem(newitem, newsize);
}
static int replace2(void *newitem, int newsize)
{
list = listptr[2];
return lreplitem(newitem, newsize);
}
static int replace3(void *newitem, int newsize)
{
list = listptr[3];
return lreplitem(newitem, newsize);
}